package Util::LeimuCategory::LeimuCategory;
use Moose;
use namespace::autoclean;

has 'schema' => (
	is => 'rw',
	required => 1,
	isa => 'DBIx::Class::Schema',
);

sub create {
	my ($self, $leimu_id, $category_id) = @_;
	my $leimuCat = $self->schema->resultset('LeimuCategory')->create({
		leimu_id => $leimu_id,
		category_id => $category_id
	});
	return $leimuCat;
}

__PACKAGE__->meta->make_immutable;

1;
